package service;

/**
 * Created by chen<chen@youjianghr.com> on 2015/7/17.
 */
public interface BalanceService {
    /**
     * 根据用户id获得他的资金余额状况，将balance状态加载到Service层响应视图中
     *
     * @param id 用户id
     * @return Service层响应视图
     */
    ServiceResponse getUserBalance(long id);

    /**
     * 锁定用户的余额状态
     *
     * @param userId
     * @return
     */
    ServiceResponse blockUserBalanceStatus(long userId);

    /**
     * 将用户的余额状态解锁
     *
     * @param userId
     * @return
     */
    ServiceResponse ubBlockUserBalanceStatus(long userId);
}
